/ Assembly List / LJCNetCommon / HTMLBuilder / GetScript

Namespace - LJCNetCommon


Parameters
fileName -
textState - The current text state values.

Returns

The <script> element.

Syntax

C#
public String GetScript(String fileName, TextState textState)

Gets a <script> element.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder(textState);

// Example Method:
var result = hb.Script("File.js", textState);

// result:
// <script src="File.js"><>

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.